<?php

namespace App\Traits;

use App\Models\Crm_Agency_Auth;
use App\Models\Crm_Contract_Template;

class Verify
{
    public static function corporateCertification($aid)
    {
        return Crm_Agency_Auth::where('agencyid',$aid)->where('status',1)->first();
    }

    public static function contractTemplate($aid)
    {
        return Crm_Contract_Template::where('agencyid',$aid)
            ->where('is_valid','Y')
            ->Nodel()
            ->first();
    }
}
